Spread ASP.NET 17
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / ListBase<T> Class / CopyTo Method / CopyTo(Int32,T[],Int32,Int32) Method
The zero-based index in the source ListBase<T> at which copying begins.
The one-dimensional System.Array that is the destination of the elements copied from ListBase<T>. The System.Array must have zero-based indexing.
The zero-based index in array at which copying begins.
The count.


In This Topic
    CopyTo(Int32,T[],Int32,Int32) Method
    In This Topic
    Copies the entire ListBase<T> to a compatible one-dimensional array, starting at the beginning of the target array.
    Syntax
    'Declaration
     
    
    Public Overloads Sub CopyTo( _
       ByVal index As Integer, _
       ByVal array() As T, _
       ByVal arrayIndex As Integer, _
       ByVal count As Integer _
    ) 
    'Usage
     
    
    Dim instance As ListBase(Of T)
    Dim index As Integer
    Dim array() As T
    Dim arrayIndex As Integer
    Dim count As Integer
     
    instance.CopyTo(index, array, arrayIndex, count)
    public void CopyTo( 
       int index,
       T[] array,
       int arrayIndex,
       int count
    )

    Parameters

    index
    The zero-based index in the source ListBase<T> at which copying begins.
    array
    The one-dimensional System.Array that is the destination of the elements copied from ListBase<T>. The System.Array must have zero-based indexing.
    arrayIndex
    The zero-based index in array at which copying begins.
    count
    The count.
    See Also